<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let a = true
        let b = true
        //a &&= b //a=a&&b true
        a ||= b //a=a||b true
        console.log(a)
        let obj = {
            introduction: 0
        }
        obj.introduction ??= "这个人很懒" //obj.introduction = obj.introduction ?? "这个人很懒"
        console.log(obj.introduction) //0

        const number = 1_000_000_000_000
        const binary = 0b1010_0101_1111_101
        const octonary = 0o12_34_56
        const hex = 0xA1_B2_C3
        console.log(number, binary, octonary, hex) //1000000000000 21245 42798 10597059

        //将所有wish替换成twj
        const str =
            "I wish to wish the wish you wish to wish, but if you wish the wish the witchwishes, I won't wish the wish you wish to wish. ";
        const newstr = str.replaceAll("wish", "twj");
        console.log(newstr); 
    </script>
</body>

</html>